import 'package:my_app_01/service/HttpUtils.dart';

class CommonApi {
  /// 获取菜单数据
  static Future<Map> getMenuList() async {
    var response = await HttpUtils.post(
      "/admin-api/rbac_menu_info/queryListByUser",
      data: {"menutype": 3},
    );
    return response;
  }

  /// 获取待办数据
  static Future<Map> getTodoListByUser({count = 5}) async {
    var response = await HttpUtils.post(
      "/admin-api/mh_sys_todo_user/pageWithTodoAndMessageList",
      data: {"pageNo": 1, "pageSize": count, "handlestatus": 0},
    );
    return response;
  }
}
